package com.yix.admin.modules.system.entity;

import com.yix.common.base.BaseIdentityIdEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.*;
import java.io.Serializable;

/**
 * @author wdx
 * @version 1.0
 * @Description TODO
 * @date 2021/2/5 13:46
 */
@Entity
@Getter
@Setter
@Table(name="sys_dict_detail")
public class SysDictDetail extends BaseIdentityIdEntity implements Serializable {

    @JoinColumn(name = "dict_id")
    @ManyToOne(fetch= FetchType.LAZY)
    @ApiModelProperty(value = "字典", hidden = true)
    private SysDict dict;

    @ApiModelProperty(value = "字典标签")
    private String label;

    @ApiModelProperty(value = "字典值")
    private String value;

    @ApiModelProperty(value = "排序")
    private Integer dictSort = 999;
}
